Fixed bottom code window bugs