fix parsing post vars