Fixed compiler warning and a bug when trying to set detail level to normal from the console.