Fix for safari