Fixed datanucleus errors