fix bug for empty action string