fixed those failed query errors (I hope).