fix crashing app in receive activity