Corrected a hole in my logic