Magnetic Field Configurations and Locked modes in RFX