NULL by default
Fix value bug
fix pattern validation