Some fixes

Fixes some typos and adds a missing logger in `utils.py`.