Fixed a bug in pcat_interface