Bug fix: include priority
Misspells and needed cast