Fix assigning undefined to pos_acc