fix resource filtering for index.html