fixed error messsages