fixed errors message controller