Fix when resuming screen session.