BF - fix small bugs in density_map example