fix bug in home.js