fix for weird JS issue