Fixed resource bug for Mac