fix based on graphx/pull/97