Fix off by one when running with specified action