Corrected bug in sns plugin