fix graph alignmnent