fix for crash on right click in preview before any model is selected.