Fixed warning 'Illegal string offset'