fixed errors messages