fix issues that sometimesthe scenes list may be empty