fixed bug when empty function result occurs
Merge pull request #14 from michaelwittig/anotherfix

Anotherfix
Merge pull request #5 from cinovo/master

merge