Fix rocket compile
Fix out of bounds array writes