fixing func Nil
Fixes #3