bugfix for overriding fail method.