fix a bug of multiply macro