fixed a bug in publishType.gsp