minor correction on logging, proper versi was not saved