Field error in register generator