fixed bug in macro for text