Q Logic error*

Q Logic error*