At 14,000 infrastructure I was unable to purchase the Scientific Development Center wonder. After purchasing 1 level of infrastructure, bringing my total to 14,001, I was able to. So, somewhere in the code you probably have >14,000 instead of ==14,000 or >13,999.99.