fixing issue 738

fixed https://github.com/kframework/k/issues/738