Fixed bug in init script