When I added test, I found a error when mode isn't found.
if mode became -1, it throw an error because Object -1 has no method 'join' on line 174.
So I had to keep modes.