fix object comparison