Fixed bug in changing allograph