fixed no block given for split issue and the problem of empty command array