Fixed bug in init.d script