try to fix static analyzer warnings