Fix many lint errors