Fix for register