fix when there is no callback
fixed bug where selections weren't persisted