Bug fix: get user's file repository from the right relation.