fixed bug in create script