remove random flags