Registration code error fix