fixed string cutting in draw.c