Fixed bug with select snippet