The if check was broken so  I fixed it