Fix refresh issue with the branches filter textbox

This bug has been annoying me for quite a time now.