fixed bug in deepEqual