fixed a gui bug