#306 Fix error in comment callback function