Ending scene bug fix