Fix resource equality