fix access item undefined