Ajax request bug fix.