Fixed typo and better log