Tried to rush through this problem too quickly, and made a stupid mistake.