small bugfix to sample pipeline