fixed two compile bugs.