register workaround