bugfix for opacity transition