fix dynamic mode plugin