fixed localsync: return the model after creation