solve the problem during screenshot