fixing resources