fixed get resourcelocator bug