Employee was loading on top of rail cars. Employee was tied off to fall protection the entire time. Employee was using a retractable lanyard and let it trail behind while walking on the car and moved too quickly causing the retractable lanyard to lock. Employee lost balance and fell onto the catwalk on the rail car and sustained injury.