fixed bugs with adding feature collections and features