Fixed sub processing error