My conditions are not holding