clip/clir flags fixed