fixed small bug in a itemRemoveFileName function