Had to fix a bug related to reading frequency and rebuild