Really fixed hist2d() function