Quick fix to get rid of divide by zero error when not having any swap