fixes storage problem with resources