fix for $priority resetting to .priority, with e2e test.
Merge pull request #153 from mchcoastal/v2

fix for $priority resetting to .priority, with e2e test.