Fixed bug when changing allograph and reselecting graph