fixed bug on fpga platforms