fixed create bugs