fixed uw bug with folder deleting with a delimeter at the end