Fixed bug.

Missing condition to decide which version of isequal should be used.