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

Fixes #151.