fix issue with invalid request payload