small fixes in array