fixed bug#assign null to array