fix analog read write issue