Fixes the POST request and callbacks