fix graph layout