Fixing jpa save bug