fixed flashing after rotation on stack