fixed rescreen problem #26