Remove unused success handler
Fix typeerror