Fix undefined on branch view