fix the condition of scene change flag and comments