bug fix into init.d - tested OK