minor bugfixes in KCSD2D