Fix bug with parsing sources.