Fixed error return bug
Compiles