[FOLD] tidy up errors