BUG: Always clean up algo reference.