Fixed forEach action bug