fixed bug in capno_helpers