fixed snippet selection