fix text alignment, closes #30