Always paint UI after the terrain.

It solves issues when painting at high zoom.