Fix bug in process form plugin