fixing issue 825

fixing https://github.com/kframework/k/issues/825