Fixed bugs related to facebook chat.