Fix start/end position for transitions