Fix repeat action bug