fixing shutdown option