Fixed sigsegv on the selection component