fix broken ref to branches collection in file view