avoid bus error