fixing some bugs for FBA scritp to work
fixing some bugs for FBA scritp to work