fixed bug with date search box populating incorrect date