Fix not working, and refactor

:(
Useless assignment to variable - `mode`.