Fix for Fi periodic_boundaries_flag