fixed bug with missing quotes around getLowestDate