Fixes log statements