Fix warnings and typos