Fix the error path of init()