fixed bug: hist/density was broken since some time
updated todo