fixed dQPFlag race condition