Fix a bug that would crash the server with a preload ajax