fix chain file path