fixes xhr sending;