Fixed issue with <not> statements in transitions