Fixed log not working