Some fixes, just need to fix a chunked bug

f
fixed chunked bug