fixed checked in frontend.js