Fixes register order