Update lint flags and fixed warning