Fixed __on_screenshot refactoring bug.