i found the problem, i connected the inputs right to the first nand gate and 2nd and 3rd nand gates, and i also connected the 1st nand gate to the 2nd and 3rd nand gate and since a nand gate takes 1 tick those 2 paths take different amount of time