Fixed a bug that would call two callback methods when the data is received in XML format