temporary fix to loadmodel