ugly and temporary workaround for gradients