corrected an issue leading to a malfunction in what gets passed by the ajax to the server