fixed bug with regex storage