Fixes a bug introduced while sleep-coding