Fix timeout on ajax side