diff --git a/assets/scripts/playerctl_loader.sh b/assets/scripts/playerctl_loader.sh
index 416e9101957feb2337b61e9402c113692af4f85c..2625e23be27691e66bf72d5868b02ca411f7b98a 100644
--- a/assets/scripts/playerctl_loader.sh
+++ b/assets/scripts/playerctl_loader.sh
@@ -102,7 +102,7 @@ if [[ $(player status) != "Playing" ]]; then
 fi
 
 if [[ -e "${res_dir}" ]];then
-  compiled_index="$(find "$res_dir" -name "compiled*" -print0 | sort --numeric-sort | tail -n 1 | cut -d '.' -f1 | cut -d '-' -f2)"
+  compiled_index="$(find "$res_dir" -name "compiled*" | sort --numeric-sort | tail -n 1 | cut -d '.' -f1 | cut -d '-' -f2)"
 else
   compiled_index="-1"
 fi