Fix static analyzer warning