fix the snippet locations