fixed if/elseif bug

sending wrong notification