Fix #1 and bump release version to 1.0.2.