Bug fix in solution key logic.