Error class fixed