fixing create bugs
Merge pull request #259 from glenwks/master

fixing create bugs