solved overlaying queries bug