Fix delete-array
Add initialization of node-valiable
check return-value of open