Wrong flag setting