fixed pqmax.