Fixing algo

still failed