Fixed warnings for comparison