fix for registration