deprecated bug fix and support undeprecate
Merge pull request #418 from cnpm/undeprecate

deprecated bug fix and support undeprecate