fixed some bugs in getting freq baseline