fix some compiler weirdness