Fix dependency bug of HAL