fixed bug null in array