small bugfix of a snippet