Fixed errors in register attempt 13