fix bug in previous patch to this file