Set type text correctly.