temporary fix for issue 789

temporary fix for https://github.com/kframework/k/issues/789. Not sure if it can pass all tests.