Trying to persist gives an error