Fix error messages in previous commit