remove non-sensical errors