Fixed bug with error messages layout, ref #353