fixed bug in modelloader