Bug fix for bin_check in fof_class.cpp