Unstable working on rotating preview