fix L1 errors