Fix qpt stuff