fix build for screenshot