How to synchronize the yaml definition file with an existing collection

I have to create a new collection every time I make an update to the yaml apispec definition file, because when I click the “save” yaml button, the api->collection treeview does not synchronize with the latest definition.

Am I doing something wrong, or is this a bug?