Short algorithm fix.