Fixed logging inside callbacks.js