Fix quest condition logic