fixing error in resource