hack isEqual to prevent infinate loop