fix bug that logging does not print in color in execution