fix for register insert