fix for inconsistency when moving the selection while callback is not called