fix bug on load_source