fixed bug when 'features' contains 'text'