fix a bug for saving screen