Fixed an issue with editing geometry collections and the out of memory workaround