Fixed bad call to a variable in screenshot private method