fix documentation bug - closes #311