fixed custom error messages not being able to display on first draw