Fixed problem with mingap being zero in histogram bin sizing.