Set default value for payload's class property. Fixes #6