avoid some erros