Fixed lint errors also fixed typo