WhereNotExpired did not correctly worked