fixes for register