fix array init
fix array printing