Still staty with a text array

Fix some bugs because of not checking null attributes.