fix macro not working problem