fixed gui bug