Fix: add 'type' even if '' is specified.