bugfix in GetErrorBlock()