fix #define generation