Fixed rendering issue in gradient view