Members Directory > My friends (filter) Showing incorect action button (Add Friend)

I was just wondering if anyone had any similar problems..

When I view my members directory, and then click on the links to filter it my “My friends” or “All members”

It shows my friends, and it shows the “Add Friend” action button as apposed to “Cancel Friendship”.

It appears there is something wrong with the JavaScript / Ajax…because it only messes up when I click on one of the links to filter the results, not on the initial result.