fix demo for safari