fix jointgrid ratio