fix safari type error

Fixes the Safari type error reported in issue #25. Honestly I don´t understand why this fixes the error ...