bug fix

fix bug that cause app to crash when user rotate screen when sending
stuff to server