fix in adding and editing markers