ajax reload bug fix