temporary fix to prevent m_addfriend from segfaulting