Fix important bug in full screen mode and improve cache deletion