That happens quite often when you explain the problem to someone, else you realise what is wrong.
Well done in figuring it out.