fixed resources issue