Fixed bug with init script