Of course you are right, I don't know why I used two consecutive ifs instead of a single one. I'll fix it in a moment.