fix sprite paths detecting