Fix gui problems.