[BUGFIX] Invalid branch in comparison