fix for cleanpath

(i must have remembered wrong on how i fixed it last night :/ )