fix to Display:writeCenter()