Blender - Rigify

I was trying to rig one of my character using the RIgify add-on in blender. I set up all the bones in the appropriate locations and generated a rig. The problem is the, rig deforms the finger mesh in weird directions. The middle finger seems to be deforming in a proper direction…but the rest move in different direction than normal. I even tried adjusting the bone rolls’ facing in the proper direction…but still the rig deforms it in weird ways. It seems like whatever the direction of the rolls are the generated rig is always deforming the fingers in one particular direction. I tried to re-rig the whole characters several times and also re-install blender…but still i’m getting problems with the fingers. It would be great if someone can help me with this.
Thank you!