Fixed resource bug, set dependencies