GUI clear bug fix