some fixes for meshloading and skillmanager ally cast