fix array contraction