Fix bug with PCODE