fix on checking equality for long