Fixed the segfault bug and the not drawing text bug.