fix bug for bind and create