Little fix to allow compactation of the resources