fixes for contracts and spending oge smart search issues.