Solver problem with init command

Could you review this patch to solve the problem of init command, which was reported in issue #10.