fixed a bug in the simplefem/gpc demo