fix bug with non working shutdown button