fix document slug not saving