Fixing dynamic priority for invalid route selection