Error with ifs.