Fix for the fac algo