fixed a static analyzer warning