Fix error checking.