fixed nullpointerexception when rotating screen