Fix some bugs of processor