Fixed searching by date and error bugs