correct two single-identifier bugs that stopped the Adams optimization from working