Fixes bug where opacity was not correctly set a second time