These trains occupied the segment earlier than you. Most likely you entered the segment on a red light but this red light was too late to react. I will try to make this situation more predictable.