remove unnecessary flag attribute