minor bug fix and remove log