fix access.js bugs