used GaloisField( p ) instead of Integers( p )

which causes segfaults