Removed redundant flag in code