fix undefined define