fix a couple of warninfs