Can't work out what you have done. But with a two way switch there are only three options on wiring.
Com is important but L1 and L2 being swapped around will not really matter so only real thing that can go wrong is to have wrong wire in com. So one in three chance of getting it right.