Fixed an error where stage could not take screenshots