Fixed bug where app would crash when sending HTTP requests