Fixed a bug that segfaulted on if too few entries