Fixed some bugs in ImDif. Nothing important.