fix bug for local mod files