fix define bug