Severhal hotfixes in the GetPrivateMessages() function