Fix bug that causes require'ing to hang