Fix bug with pattern primer

Needed to initialize a var