fix issue with payload free