Fixed register problem