fix create work logic