Fixing operator order when checking for state bit.