Fixed error print out