fix to error on first-key regex