fix 2D density model