Fixed dictionary generation and mod loading issue