fix order of operations for not operator

fixes #79