Fixed issue 65
small fix to default func
Merge pull request #120 from anas-ambri/issue-65

Issue 65