Bug fix error class