bug fixes for LLGC and NN measures