Fix various warnings attempt1