Bug fixes for Remote storage of IM.