Fix bug in filter for single day