Fixed bug in qft_steps