fix bug on dynamic load