fix invoke response handling