Report: Train engineer saw problem with tracks before accident