flag was on wrong place