Fixed small bug

Fixed bug that occured in PSv2 if a folder was empty.