Corrected bug with DrawModel()