Fix bug in ajax updater