Fix the buffer initialization of UAV and SRV.