snippet bugfix

@lennartcl