Rigify finger controls rotation not moving correctly
When rigging with rigify, most of the time bone roll will be correct, however on occasion if you have to adjust the metarig a lot, the rolls can get distorted. This is particularly common on the fingers as they have many segments and often require a bit of adjustment depending on the exact position that the hand is modeled. I find is always worth checking bone rolls in the hand when using rigify.

Rolls can be adjusted with ctrl-R. For rigify fingers you should have the bone's Z axis pointing in the direction you want the finger to curl when you scale the control bone down. There is no automatic way of setting this as it depends on the mesh.

Re-running generate from the metarig will update the generated rig provided you have not renamed it.