fixed bug with unset array element