fix GUI errors