correcting flag