Little issue with onSelect

Line 162