fix to registration