Fixed lib conversion and disabled BOD when sleeping