bugfix with regex search