Fixed unsafe equals