fix bug in error processor