fix for register