Fixed: misunderstanding about if statement