Update mode.cs

an interesting case showed