Added Javadoc for the fixIncorrectFlags method