fix a bug with inherited resources