fixes logic error in questions model