Fixed a bug in saving POC, where a wrong POC id was used