fix the screenshot's bug