Fix case where local is allocated but not actually called on