Fixed bug in social plugin