Fixed gui bug