Hint added
Corrected the flag bug.