Tax subtotal excluding from sale price although settings are not

I have running Magento 1.9.3.7 on PHP5

for some weird reason, tax is acting weird on checkout and cart, first prices are displaying as normal, then on the subtotal, tax is deducted from selling price, and then it adds taxes again, so the total amount is finally the original selling price, instead of price + tax. enter image description here Settings seems to be right, prices are supposed to be excluding taxes, i attached screens of both, checkout and settings, i’ve read somewhere that there is a bug, but with PHP7, and i have 5.5

enter image description here

enter image description here