fixing pattern split at root dir