fix get-screenshot in server and client