Prevent duplicate error messages, allow ^ position after the end