fix array issue in steps