fix if dat is undefined and bump version 0.0.2