fix empty payload

Fix for #2