fixed a generator menu crash