ajax.php bugfix