avoid call createThumb if the thumb exits
fix error on cmd rutines