histogram

Fix histogram code