There's a bug where if you try to make an invalid connection between two numbers, and then try to make a different one when the first one fails, the second one works.
EDIT: It also happens if you just remove a connection and then make an invalid connection afterwards.