Fix for length of params elements length calculation