fix pointer initialization.  Fixes #19