Fixed two warnings.
Fix #909.