Fixed log in the wrong place