Trying to fix random null pointer error in connection_completed.