fixed little bug with a concatenated pattern