change mode to work in proper permission
Merge pull request #1 from kuenishi/patch-1

change mode to work in proper permission