fixing init script executing issue