fixes knex conditions bug