Fix bug of require.define