Fixed folder scanning in SE, which was completely broken

Oops