fixing crash with blank attributes