A rail vehicle comprising a vehicle body and at least one running gear, the running gear comprising: - first and second independent wheel assemblies (18.1, 18.2) on opposite first and second sides of a longitudinal vertical median plane of the running gear, each of the first and second independent wheel assemblies (18.1, 18.2) comprising an independent wheel (20.1, 20.1) and a bearing assembly (22.1, 22.2) for guiding the independent wheel (20.1, 20.2) about a revolution axis (200.1, 200.2) fixed relative to the bearing assembly (22.1, 22.2), - a flexible frame linking the bearing assembly (22.1) of the first independent wheel assembly (18.1) and the bearing assembly (22.2) of the second independent wheel assembly (18.2), wherein in a reference position of the running gear, the revolution axis (200.1) of the first independent wheel assembly (18.1) and the revolution axis (200.2) of the second independent wheel assembly (18.2) are coaxial and are perpendicular to the longitudinal vertical median plane, - a steering actuator connected to the flexible frame on one side of the longitudinal vertical median plane and linked to the vehicle body and either a further steering actuator which operates with the same magnitude but in the opposite direction, or a connecting rod, wherein the further steering actuator or the connecting rod is connected to the flexible frame on the other side of the longitudinal vertical median plane and linked to the vehicle body, the one or two steering actuators being capable of effecting a displacement of a part of the flexible frame relative to the vehicle body in a longitudinal direction of the running gear parallel to the longitudinal vertical median plane and of moving the bearing assembly (22.1, 22.2) of at least one of the two independent first and second wheel assemblies (18.1, 18.2) away from the reference position in the longitudinal direction, characterised in that the running gear further comprises: - a wheel flange contact detection unit for detecting a contact between a flange of the independent wheel (20.1, 20.2) of any of the two independent first and second wheel assemblies (18.1, 18.2) with a rail (15.1, 15.2), and - a controller for controlling the one or two steering actuators based on signals from the wheel flange contact detection unit. - first and second independent wheel assemblies (18.1, 18.2) on opposite first and second sides of a longitudinal vertical median plane of the running gear, each of the first and second independent wheel assemblies (18.1, 18.2) comprising an independent wheel (20.1, 20.1) and a bearing assembly (22.1, 22.2) for guiding the independent wheel (20.1, 20.2) about a revolution axis (200.1, 200.2) fixed relative to the bearing assembly (22.1, 22.2), - a flexible frame linking the bearing assembly (22.1) of the first independent wheel assembly (18.1) and the bearing assembly (22.2) of the second independent wheel assembly (18.2), wherein in a reference position of the running gear, the revolution axis (200.1) of the first independent wheel assembly (18.1) and the revolution axis (200.2) of the second independent wheel assembly (18.2) are coaxial and are perpendicular to the longitudinal vertical median plane, - a steering actuator connected to the flexible frame on one side of the longitudinal vertical median plane and linked to the vehicle body and either a further steering actuator which operates with the same magnitude but in the opposite direction, or a connecting rod, wherein the further steering actuator or the connecting rod is connected to the flexible frame on the other side of the longitudinal vertical median plane and linked to the vehicle body, the one or two steering actuators being capable of effecting a displacement of a part of the flexible frame relative to the vehicle body in a longitudinal direction of the running gear parallel to the longitudinal vertical median plane and of moving the bearing assembly (22.1, 22.2) of at least one of the two independent first and second wheel assemblies (18.1, 18.2) away from the reference position in the longitudinal direction, - a wheel flange contact detection unit for detecting a contact between a flange of the independent wheel (20.1, 20.2) of any of the two independent first and second wheel assemblies (18.1, 18.2) with a rail (15.1, 15.2), and - a controller for controlling the one or two steering actuators based on signals from the wheel flange contact detection unit.