Removes some errors