Prevents getSelected to return undefined
Fixes #87