Fixed: use "if-else" replace "if"