first try to correct railway type