fixed bepuik length NaN issues by setting minimum allowed bepuik length