avoid to print error message repeatedly