Fixed another type issues for mxgraph