fixed init error for gnome terminal