a couple of fixes for warnings