small fix to ignore data with NULLs. Closes #2.