fix two bugs in models not rendering