fixed a define bug