quick fix to gui crash mistake