Fix error propagation bug.