Fixed error processing