Fix bug #933: Ajax error

Caused by commit 7e53f98