bugfix. function not method
Bugfixes to podiff