fix bug in actions.go