NXP-14879: fix histogram selection with large interval