fix log inline don't try to get pk when adding