attempt to fix javascript bug on production