fixed duplicated regex