Fixed an issue with toggling screening flags.