Fix bug about when instruction runs.