Switch plugin initialization corrected