fixed issue put using use_sudo together with mode