fixed errors in 1.0.1