Fixed errors

Fixed the errors causing extra stuff to be displayed. Looks like something got screwed up when I initially committed.