chunks: fix by schema handling