Fix some basic warnings