Employee was closing lids on top of a railcar. Primarily due to unsafe footing of the employee's right foot, his foot twisted and his knee went between the grating and the lid of the railcar. Employee was taken to Inspira Occupational Health (Company doctor) for evaluation. The doctor placed the employee on modified duty due to contusion and sprain of his right knee.