fix spec and regx