Make sure resources aren't loaded twice