fixed some minor timelock bug