Fixes empty date filtering