Thank you very much for reporting this bug! I’m adding this to our to-do list. Can you please tell what version of BuddyPress plugin you are using? We’re working on the new version of the plugin and we plan to release it next week. Of course, we’ll fix this issue. If you need this fixed ASAP, go ahead and change the line that is causing this issue.