initialize selection cursors
Fix a bug in selections across nodes