fix shutdown but