Fixing error detection