Micro fix for weird query condition