Fixed ajax settings

Fixed bug that incorrectly merge ajax request settings.