Bug fix where_nins