Fixed error message controller