fix _with_init decorator