Fixed bugs in fetching-source-code function.