[b] fix compile errors