fixing a bug in getGCF
I think it's ready for testing...