Priority queue constructor fix