Fixed spurious errors

Fixed some (unnecessary, but still there) warnings.