fix some things codeq was complaining about