Error messages corrected