Pseudo value query fix