workaround fix for register