fix overwhelming bug on orientation changes