fixed model drawing bug