Removed small bug in auto detection of new file