Fixed "invalid arguments" error when running init script