Fixed bug in sites.js