Fixed a bug (line code inside a switch)