fix dynamic loading