quick fix for crashes by changing orientation changes