Fix check on timepositions.