fix plugin registration