fixing bug of Samsung rotation