diff --git a/hyprpm/src/core/DataState.cpp b/hyprpm/src/core/DataState.cpp
index d8a9477ea..3e7ae399d 100644
--- a/hyprpm/src/core/DataState.cpp
+++ b/hyprpm/src/core/DataState.cpp
@@ -2,7 +2,7 @@
 #include <sys/stat.h>
 #include <toml++/toml.hpp>
 #include <print>
-#include <fstream>
+#include <sstream>
 #include "PluginManager.hpp"
 #include "../helpers/Die.hpp"
 #include "../helpers/Sys.hpp"