fix bug in creation