fixed split function error