Fixed a bug which lead to a occupancy histogram not beeing filled.