fixed Error message is not correct