ending opacity fix