Fixed bugs in the source file.