get_instance_lasttask bug fixed