Fix error in FPGA index. Add exception handling