Fix crash on select empty string