sometimes the error is not an array