Fixed ganglion callback return type handling