fix bug for empty func-define crash