lint: Fix several detect issues