Hash and __lt__ fix