Fixed error warnings
Added erroneous message