fixed gui bugss