Did not write correct primaryID