fixed bug in init command