Fix processing bug in rails 3.2