Fixed a bug with source loading.