fix resource file for mac