fix two possible compiler warnings