Fix three warnings