fixes bugs concerning bundle's resources