fix init with barrel