Fix fetch insert assertion
Fix printf format
Fix string buffer overflow