Fixed bugs in Processing