fix bug for inerting incorrect userid