fixed bug in reset gui