Fixes xhr request in simulator