fix for Safari