fix for saving the wrong ressources