Fix missing return statement in text drawing function