It should be possible to append anyway a LinkPGCN command when the NextPGC link is not zero, and doesn't point to itself. If the PGC is exited by a post command, the LinkPGCN will never be reached. Right?
[EDIT] Just finished modifying the code. Seems adding a LinkPGCN anyway works fine.
Thanks for your bug report, Sir Didymus.