fixing small bug with loading model properties. maybe need fixing again for complex model classes (with complex inheritance).