fixed bug in processor.