fix bug get() called twice