fixed bug with assignment of old_instance var