fixed bug with different tax rules