Resolve error messages format bug