Fixed a small bug in FPI processing