fixed resources index again