fixing init command bug