Fix error messages invocation