traslate tab into space, and fix a error