fix plugin validation