Fix static analysis error