fix the init state