Fix error code return for init status