Fixes final condition.