maxsplit bug fixed