Split Layout issue

I created split layout and i need to remove components in split layout.

I called remove and removeAll method and it works but the problem when i called getPrimaryComponent and getSecondaryComponent and it returns previous component.

Sounds like a bug related (identical?) to this one: https://github.com/vaadin/vaadin-split-layout/issues/149