Fix register nonsense