Fixed errors in register attempt 12