Fix endAction