Fixed ClassCastException when loading ModLoader mods