bug fix: wrong handling in ajax calls