fix upstream directive missing