insufficient samples bugfix