Attempt to solve isequal vs. == bug