Fix constant
Improve logging