fix fp for allocation in loop for PSC