Fix minor bugs for the missing resources directory