Fix bug in inverted expressions.
Fixes toggle attributes