Fix some addition bugs.

This piece of code write some information from dif-file to my code. I'm
hate it.