Bugfix for gradient transitions