fix macro redefinition error