Fixed Safari bug