Fixed a lot of drawing issues.