fixed bug regarding obj loading