only one $or condition can exist fixes infinite loop