resolved bug when searching on date fields