Fixed error propagation bug.