fixed bug in init script