fixed an erronious macro in demo code