Bugfix for safari browser