fix chunk create logic