Bug fix

printing the correct error