fix pattern empty field