Minor bug fixes for OpenSocial