fixes error on restart in wheezy