Fix illegal offset 0 warning