Fixed a lot of bugs about Processor.