fixed bug in z-index of gradient