make on_created to enable for mac os x
Merge pull request #1 from woojing/master

make on_created to enable for mac os x