correcting wrong register