fix incorrect third args and length returned for base sequences