fix creating bug