fix dynamic bug