fix hal timing