fix equals() for numbers