fixed search/replace error
fixed typo in setExtent function