bug fix for single element matricies